// pages/06/11.js
var httpUtil = require("../../../common/httpUtil.js");
const app = getApp
Page({

     /**
      * 页面的初始数据
      */
     data: {
          userInfo: "",
          uid: "",
          user: "",
          sliderOffset: 0,
          activeIndex: 0,
          items: ["sdcsjanjcasdn"],
          tabs: ["正在审核", "已解决", "未解决"],


     },
    
     tabClick: function (e) {

          var that = this;
          // that.setData({
          //      p: 1
          // })
          var id = e.currentTarget.dataset.id;
          console.log("tabClick:" + id);
          if (id == 0) {

               that.loadData("2,4,6,7");
               var uid = wx.getStorageSync('uid');
               var that = this;
               that.setData({
                    uid: uid,
               });

          } else if (id == 1) {

               that.loadData("3,5");
               var uid = wx.getStorageSync('uid');
               var that = this;
               that.setData({
                    uid: uid,
               });


          } else if (id == 2) {
               that.loadData("99");
               var uid = wx.getStorageSync('uid');
               var that = this;
               that.setData({
                    uid: uid,
               });

          } else if (id == 3) {
               that.loadData("1");
               var uid = wx.getStorageSync('uid');
               var that = this;
               that.setData({
                    uid: uid,
               });

          }
           this.setData({
               sliderOffset: e.currentTarget.offsetLeft,
               activeIndex: id,
          });
    },

     /**
      * 生命周期函数--监听页面加载
      */
     onLoad: function (options) {

     },

     /**
      * 生命周期函数--监听页面初次渲染完成
      */
     onReady: function () {

     },

     /**
      * 生命周期函数--监听页面显示
      */
     onShow: function () {
         
     },

     /**
      * 生命周期函数--监听页面隐藏
      */
     onHide: function () {

     },

     /**
      * 生命周期函数--监听页面卸载
      */
     onUnload: function () {

     },

     /**
      * 页面相关事件处理函数--监听用户下拉动作
      */
     onPullDownRefresh: function () {

     },

     /**
      * 页面上拉触底事件的处理函数
      */
     onReachBottom: function () {

     },

     /**
      * 用户点击右上角分享
      */
     onShareAppMessage: function () {

     }
})